package com.ctgu.demo05.service;

import com.ctgu.demo05.entity.CustomersEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.demo05.utils.ApiResult;

import java.math.BigDecimal;

/**
* @author Alex2
* @description 针对表【t_customers】的数据库操作Service
* @createDate 2025-03-13 10:50:58
*/
public interface CustomersService extends IService<CustomersEntity> {

    ApiResult insertCustomer(String name, BigDecimal balance);

    ApiResult consumer(Integer customerId, BigDecimal amount);

    ApiResult consumerByAnnotation(Integer customerId, BigDecimal amount);

    ApiResult updateBalanceAndCreateOrder(Integer customerId, BigDecimal amount);
}
